home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Finding locations of other Frames
- Sent: 4/19/96 3:50 PM
- Received: 4/19/96 4:01 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >But sometimes you do care, for example, I have a part that has multiple
- >presentations. Presentation 1 is always showing. But perhaps while
- >presentation 1 is showing they want to look at presentation 2, it is very
- >helpful, nay essential, that both presentations are observed at the same
- >time.
- >
- >User interface wise what am I to do? Force the user open a new facet and
- >place it manually? Or open a new facet with presenation 2 right next to the
- >facet with presentation 1?
- >
- >Once again, I may be missing the point here entirely, and if there is a
- >better way to do this I am all ears. I don't want to stuff all the
- >presentations into the same facet becuase you may want to compare multiple
- >instances of similar objects looking at one or two of the presentations,
- >either together or apart.
- >
- >When is the external transform available to me.
- >
- >To find some stuff out I tried this little snippet in FacetAdded of my
- >object that overiddes FW_CFrame for my part. And it does not change the
- >Rect like I would think it should.
- >
- > FW_CAcquiredODShape boxShape = odFacet->AcquireActiveShape(ev, kODNULL
- >);
- > FW_CRect movieFacetRect = FW_GetShapeBoundingBox(ev,
- >boxShape);
- > FW_CAcquiredODTransform windowTransform = odFacet->
- > AcquireExternalTransform(ev,
- >kODNULL);
- >
- > movieFacetRect.Transform( ev, windowTransform );
- >
- >
- >Anyway, thanks a lot Henri for all your help with this.
- >
- >Jer,
-
- This external transform goes from frame coordinate to the embedding frame
- content coordinate. To go to window coordinate you need to use
- AcquireWindowFrameTransform.
-
- There is no way in OpenDoc to force your frame to be in a specific
- position inside the container. Your embedding part can do what ever it
- want.
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-
-